/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lesson10;

/**
 *
 * @author netcracker
 */
public class LinkedListVectorFactory implements VectorFactory {

    @Override
    public LinkedListVector createVector() {
        return new LinkedListVector();
    }

    @Override
    public LinkedListVector createVector(int n) {
        LinkedListVector llv = new LinkedListVector();
        for (int i = 0; i < n; i++) {
            llv.add(0);
        }
        return llv;

    }
}
